#include "defaultpainter.h"
#include "QPainter"
#include "QPixmap"
#include "QPainterPath"

DefaultPainter::DefaultPainter() {}

QImage DefaultPainter::Paint() {
    QPainter painter;
    QImage image(drawSize, QImage::Format_RGBA8888);
    painter.begin(&image);

    QPainterPath path;
    path.addRect(QRectF(0, 0, 500, 500));
    QBrush brush;
    brush.setColor(QColor(255, 0, 0));
    brush.setStyle(Qt::BrushStyle::SolidPattern);
    painter.fillPath(path, brush);
    painter.drawPath(path);
    painter.end();
    return image;
}
